home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 July / macformat52.iso / mac / Shareware Plus / Developers / YAAF v1.0 alpha 1 / (Tools) / CompileVRes / viewformat.h < prev   
Encoding:
C/C++ Source or Header  |  1997-04-15  |  1.6 KB  |  75 lines

  1. /*    viewformat.h
  2.  *
  3.  *        This stores the definition of a view
  4.  */
  5.  
  6. #ifndef __VIEWFORMAT_H__
  7. #define __VIEWFORMAT_H__
  8.  
  9. /************************************************************************/
  10. /*                                                                        */
  11. /*    File Foramt Records                                                    */
  12. /*                                                                        */
  13. /************************************************************************/
  14.  
  15. /*    ViewRecord
  16.  *
  17.  *        This is the format of the view record contents
  18.  */
  19.  
  20. typedef struct ViewRecord {
  21.     long            viewsize;
  22.     long            viewchild;
  23.     long            viewsibling;
  24.     long            viewtype;
  25. } ViewRecord;
  26.  
  27. /************************************************************************/
  28. /*                                                                        */
  29. /*    View format structures                                                */
  30. /*                                                                        */
  31. /************************************************************************/
  32.  
  33. /*    ViewElemRecord
  34.  *
  35.  *        An element or record definition
  36.  */
  37.  
  38. typedef struct ViewElemRecord {
  39.     struct ViewElemRecord    *next;
  40.     short                    type;
  41. } ViewElemRecord;
  42.  
  43. /*
  44.  *    ViewElemRecord.type
  45.  */
  46.  
  47. #define    KViewBoolean        1
  48. #define KViewInteger        2
  49. #define KViewString            3
  50. #define KViewDimension        4
  51.  
  52. /*    ViewFormatRecord
  53.  *
  54.  *        How a view is defined
  55.  */
  56.  
  57. typedef struct ViewFormatRecord {
  58.     struct ViewFormatRecord    *next;
  59.     
  60.     long                    vtoken;
  61.     struct ViewFormatRecord    *base;            /* Base class */
  62.     struct ViewElemRecord    *list;
  63. } ViewFormatRecord;
  64.  
  65. /************************************************************************/
  66. /*                                                                        */
  67. /*    View format routines                                                */
  68. /*                                                                        */
  69. /************************************************************************/
  70.  
  71. extern void                    ParseFile(char *);
  72.  
  73.  
  74. #endif
  75.